<template>
	<div class="app">
		<h2>我是App组件</h2>
		<h3>字符串的值为：{{str | jiequ(3)}}</h3>
		<h3 v-atguigu-slice="str"></h3>
		<Hello/>
		<h1>{{x}}</h1>
		<button @click="welcome">点我欢迎新同学</button>
		<Student />
	</div>
</template>
1
<script>
	import Student from "./components/Student";

	export default {
		name: "App",
		components: {Student},
		data() {
			return {
				number:666,
				str:'hello，atguigu'
			}
		},
	};
</script>

<style>
	.app{
		background-color: gray;
		padding: 20px;
	}
</style>